package com.example.rxjavautildemo.activity;

import android.view.View;

import com.example.rxjavautildemo.R;
import com.example.rxjavautildemo.base.BaseActivity;

import butterknife.OnClick;

public class MainActivity extends BaseActivity {
    @Override
    protected int getLayoutId() {
        return R.layout.activity_main;
    }

    @Override
    protected void initViews() {

    }

    @Override
    protected void initListener() {

    }

    @OnClick({R.id.btn_rxbus,R.id.btn_rxjava,R.id.btn_rxbinding})
    protected void onViewClicked(View view){
        switch (view.getId()) {
            case R.id.btn_rxbus:
                startActivity(RxBusActivity.class);
                break;
            case R.id.btn_rxjava:
                startActivity(RxJavaActivity.class);
                break;
            case R.id.btn_rxbinding:
                startActivity(RxBindingActivity.class);
                break;
        }
    }
}
